Skip to main content

Bug Tracker

Side navigation

#12723 closed feature (fixed)

Opened October 14, 2012 10:34AM UTC

Closed December 03, 2013 12:23PM UTC

Consider using "display: default" (once implemented) to circumvent the defaultDisplay code path

Reported by: mikesherov Owned by:
Priority: low Milestone: 2.next
Component: css Version: git
Keywords: Cc: rwaldron
Blocked by: Blocking:
Description

Prompted by rwaldron's comment here: https://bugzilla.mozilla.org/show_bug.cgi?id=797029#c10 , this discussion happened: http://lists.w3.org/Archives/Public/www-style/2012Oct/0364.html

Which discusses the addition of a new global CSS value keyword called "default", which is like "initial", except it takes the elements default attributes into consideration.

Instead of doing defaultDisplay to figure out what to set display to for .show(), we can simply do: "display: default". This would have the added benefit of not showing elements whose default display is actually "none", like script tags or style tags or input type=hidden tags.

Attachments (0)
Change History (8)

Changed October 14, 2012 10:35AM UTC by mikesherov comment:1

cc: → rwaldron
component: unfiledcss
priority: undecidedlow

Changed October 14, 2012 11:10AM UTC by rwaldron comment:2

+(2^53)

Changed October 15, 2012 04:21AM UTC by mikesherov comment:3

status: newopen

Changed March 12, 2013 10:39PM UTC by m_gol comment:4

I guess this would let to fix easily http://bugs.jquery.com/ticket/10568

Changed April 29, 2013 03:57PM UTC by dmethvin comment:5

milestone: None2.next

Changed September 17, 2013 12:11PM UTC by Oleg comment:6

resolution: → fixed
status: openclosed

Fix #12723 and simplification and optmization of defaultDisplay helper

Changeset: a25343001eea2436dcf8ea60deea3844f77e42e4

Changed September 17, 2013 12:34PM UTC by m_gol comment:7

resolution: fixed
status: closedreopened

This is not fixed, this ticket specifically mentioned display: default which this commit didn't use, obviously.

Changed December 03, 2013 12:23PM UTC by markelog comment:8

resolution: → fixed
status: reopenedclosed

@m_gol Please read original thread posted in this ticket description - http://lists.w3.org/Archives/Public/www-style/2012Oct/0364.html.

display: default
was just a suggestion in it, which original title was "Proposing a getDefaultComputedStyle method".

getDefaultComputedStyle
ended up being implemented not
display: default

I think it would be better if next time you would assume i have a reason to close some issue or if you would consult with me before you reopen it.